package com.example.gbuffer.Utils;

public class Vector3D {
    public float x, y, z;

    public Vector3D(float x, float y, float z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public Vector3D add(Vector3D v) {
        return new Vector3D(this.x + v.x, this.y + v.y, this.z + v.z);
    }

    public float dot(Vector3D v) {
        return this.x * v.x + this.y * v.y + this.z * v.z;
    }
}